package com.skyeyes.service.impl;

import com.skyeyes.entity.LocationBean;
import com.skyeyes.mapper.LocationMapper;
import com.skyeyes.service.LocationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class LocationServiceImpl implements LocationService {

    @Autowired
    private LocationMapper locationMapper;

    @Override
    public void saveLocations(List<LocationBean> locations) {


        locationMapper.saveLocationBatchs(locations);

    }

    @Override
    public List<LocationBean> getLocationTrace(String userid) {
        List<LocationBean> locationBeans=locationMapper.queryListLocation(userid);
        return locationBeans;
    }
}
